<%-- 
    Document   : header
    Created on : Nov 16, 2014, 3:12:17 PM
    Author     : Hai
--%>
<%@include file="checkSession.jsp" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<header>
    <section class="container">
        <nav>
            <ul class="nav">
                <li class="active"><a href="index.html" class="nav-icon" title="Home"><span class="icon-home">Home</span></a></li>
                <li><a href="index.html" title="Products">${sessionScope.user}</a></li>
                <li><a href="/QLTK" rel="nofollow" title="">Admin</a></li>
                <li><a href="/DiDau" title="upload">Đi Đâu</a></li>
                <li><a href="/list.jsp?where=chuyendi" title="upload">Lịch Trình</a></li>
                <li><a href="/list.jsp?where=nhatky" title="upload">Journal</a></li>
                <li><a href="/ThuHoach" title="upload">Result</a></li>
                <li>
                    <% String login = null;
                        String sHref = null;

                        if (((String) session.getAttribute("id")) != null
                                && ((String) session.getAttribute("user")) != null
                                && ((String) session.getAttribute("lvl")) != null) {
                            login = "Logout";
                            sHref = Const.SiteConstant.logout;
                            out.print("<a class='trigger2' href='" + sHref + "' rel='nofollow'>" + login + "</a>");
                        } else {
                            login = "Login";
                            sHref = Const.SiteConstant.login;
                            out.print("<a class='trigger2' href='" + sHref + "' rel='nofollow'>" + login + "</a>");
                        }

                    %>
                </li>

            </ul>
        </nav>
    </section>
</header>
